/**
 *    Copyright 2009-2019 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.apache.ibatis.mapping;

/**
 * 表示Statement语句的内容，其参数使用了占位符进行了替换在运行的时候，其持有的SQL会发送给数据库.
 *
 * @author Clinton Begin
 * @see org.apache.ibatis.scripting.xmltags.DynamicSqlSource 动态Sql语句的封装
 * @see org.apache.ibatis.scripting.defaults.RawSqlSource 原始Sql语句的封装
 * @see org.apache.ibatis.builder.annotation.ProviderSqlSource 通过 {org.apache.ibatis.annotations.***Provider}来获取SQL语句的封装
 * @see org.apache.ibatis.builder.StaticSqlSource 静态Sql语句的封装，其他的几种类型最终都会委托给该对象
 * <p>
 * Represents the content of a mapped statement read from an XML file or an annotation.
 * It creates the SQL that will be passed to the database out of the input parameter received from the user.
 */
public interface SqlSource {

    BoundSql getBoundSql(Object parameterObject);

}
